#include "widgetShow.h"

RollCallShow::RollCallShow(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::RollCallShow)
{
    ui->setupUi(this);
    setWindowFlags(Qt::WindowStaysOnTopHint);

//    setWindowFlags(windowFlags()& ~Qt::WindowMaximizeButtonHint);  // 禁用窗口最大化按键
//    setFixedSize(this->width(), this->height());  // 固定窗口尺寸
}

RollCallShow::~RollCallShow()
{
    delete ui;
}

void RollCallShow::setName(QString nameStr){
    ui->nameLabel->setText(nameStr);
}

void RollCallShow::setNum(QString numStr){
    ui->randNumLabel->setText(numStr);
}

void RollCallShow::closeEvent(QCloseEvent *event){
    qDebug()<<event;
    emit callrollShowClosed();
}
